import {createMemoryHistory, createRouter, createWebHistory} from 'vue-router'
import Login from "@/com/login.vue";
import hone from "@/com/hone.vue";
import login from "@/com/login.vue";
import manager from "@/com/manager.vue";
import Book from "@/com/book.vue";
import Info from "@/com/info.vue";
import Manager from "@/com/manager.vue";
import Sooy from "@/com/sh.vue";



const routes = [
    { path: '/', component: Login ,name:'login' },

    { path: '/manager', component: Manager,name:'manager' , children: [
            {path: 'book', component:Book, name:'book'},
            {path: 'info', component:Info, name:'info'},
            {path: 'hone', component: hone,name:'hone' },
            {path: 'sh', component:Sooy, name:'sh'},
        ]},
]

export const router= createRouter({
    history: createWebHistory(),
    routes,
})